package com.waimai.db.dao;

import java.util.List;

import com.waimai.db.entity.Comment;
import com.waimai.db.entity.Order;
import com.waimai.db.entity.OrderFood;
import com.waimai.db.entity.OrderStatus;

public interface OrderDao {
	public OrderFood addOrderFood(OrderFood orderFood);
	
	public Order findById(Integer orderId);

	public List<Order> getUserOrders(Integer userId);

	public OrderStatus updateStatus(Integer orderId, OrderStatus orderStatus);

	public Comment addComment(Integer orderId, Comment comment);

	public int count();

	public List<Order> getOrders();

	public List<Order> getOrdersByAdminId(int adminId);
}
